﻿using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace Iot.Shared.Enums;

/// <summary>
///     传输开关量状态
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum Switching : byte
{
    /// <summary>
    ///     正常
    /// </summary>
    [Display(Name = "正常")] Normal,

    /// <summary>
    ///     告警
    /// </summary>
    [Display(Name = "告警")] Alarm
}